<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<s:include value="/commun/header.jsp" />
<div id="body">

<s:if test="hasActionErrors()">
   <div class="errors">
      <s:actionerror/>
   </div>
</s:if>

<s:form>
<p>
<s:textfield label="Login" name="utilisateur.login" />
</p>
<p>
<s:password label="Mot de passe" name="utilisateur.motdepasse" />
</p>
<p>
<s:password label="Mot de passe (confirmation)" name="motdepasse2" />
</p>
<p>
<s:textfield label="Adresse e-mail" name="utilisateur.adresseMail" />
</p>
<p>
<s:select label="Role" name="utilisateur.role.id" 
	list="#session.roles"
	listKey="id"
	listValue="%{nom}" />
</p>
<p>
<s:submit action="insertUser" value="Enregistrer" />
<s:reset value="Annuler" />
</p>
</s:form>


</div>
<s:include value="/commun/footer.jsp" />